//共用css文件
*{
  margin: 0;
  padding: 0;
}
body,
html {
  font: 12px/1.5 'Microsoft YaHei';
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
}
a {
  background: none;
  border: none;
  outline: none;
}
a:link {
  text-decoration: none;
}
a:visited {
  text-decoration: none;
  outline: none;
}
a:hover {
  text-decoration: none;
}
a:active {
  text-decoration: none;
  outline: none;
}
a,
body,
div,
em,
font,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
html,
iframe,
img,
li,
menu,
object,
ol,
p,
pre,
span,
strong,
thead,
u,
ul {
  border: 0;
  margin: 0;
  padding: 0;
}
b,
strong {
  font-weight: bold;
}
img {
  border: none;
  outline: none;
}
ol, ul, li {
  list-style: none;
}
table {
  border-collapse: collapse;
  word-wrap: break-word;
}
tr,
th,
td,
caption {
  font-weight: normal;
  text-align: left;
  border-spacing: 0;
  padding: 0;
  margin: 0;
}
input {
  outline: none;
  padding: 0;
  margin: 0;
}
/*去除IE10的清空文本框按钮“X”*/
input::-ms-clear {
  display: none;
}
.left {
  float: left;
  display: inline;
}
.right {
  float: right;
  display: inline;
}

/*/!*清除ie的默认选择框样式清除，隐藏下拉箭头*!
select::-ms-expand {
  display: none;
}
/!*将默认的select选择框样式清除*!
select {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  -ms-appearance: none;
}*/
i,
em {
  font-style: normal;
}

// 清除浮动
// ==========================================================================
.clearfix() {
  &:before,
  &:after {
    content: " "; // 1
    display: table; // 2
  }
  &:after {
    clear: both;
    visibility: hidden;
    height: 0;
  }
}
.clearfix {
  .clearfix();
  *zoom: 1;
}
//边框
.border(@width; @border-base) {
  border: @width solid @border-base;
}
.border-bottom(@width; @border-base) {
  border-bottom: @width solid @border-base;
}
.border-top(@width; @border-base) {
  border-top: @width solid @border-base;
}
// 设置容器宽高
.size(@width; @height) {
  width: @width;
  height: @height;
}
.size-large(@width; @height) {
  width: @width;
  max-height: @height;
}
.size-small(@width; @height) {
  width: @width;
  min-height: @height;
}
.square(@size) {
  .size(@size; @size);
}
//超出隐藏
.text-overflow() {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
//CSS圆角
.border-radius(@radius) {
  -webkit-border-radius: @radius;
  -moz-border-radius: @radius;
  border-radius: @radius;
}
.border-top-radius(@radius) {
  border-top-right-radius: @radius;
  border-top-left-radius: @radius;
}
.border-right-radius(@radius) {
  border-bottom-right-radius: @radius;
  border-top-right-radius: @radius;
}
.border-bottom-radius(@radius) {
  border-bottom-right-radius: @radius;
  border-bottom-left-radius: @radius;
}
.border-left-radius(@radius) {
  border-bottom-left-radius: @radius;
  border-top-left-radius: @radius;
}

//定位
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed(@top; @left) {
  position: fixed;
  top: @top;
  left: @left;
}
// Opacity
.opacity(@opacity) {
  opacity: @opacity;
  // IE8 filter
  @opacity-ie: (@opacity * 100);
  filter: ~"alpha(opacity=@{opacity-ie})";
}
//隐藏元素
.display,
.hide{
  display: none;
}
//文本对齐
.align(@align) {
  text-align: @align;
}